package com.ddxcloud.movie.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddOrderDTO {

    @NotBlank(message = "请输入下单手机号码")
    @Schema(description = "下单手机号码")
    private String mobile;

    @NotBlank(message = "请输入商户内部订单号")
    @Schema(description = "商户内部订单号")
    private String outTradeNo;

    @NotBlank(message = "请输入影院编号")
    @Schema(description = "影院编号")
    private String cinemaId;

    @NotBlank(message = "请输入排期编号")
    @Schema(description = "排期编号")
    private String showId;

    @NotBlank(message = "请输入座位信息")
    @Schema(description = "座位信息（最多4座）例如：4排8座,4排9座")
    private String seats;

    @Schema(description = "换座 0.不换（允许联系客户换座），1.允许换座 2.不换（不允许联系客户换座）")
    private Integer changeSeat = 0;

	@NotNull(message = "请输入购票方式")
	@Schema(description = "购票方式 0.特惠购票 1.快捷出票")
	private Integer deliverMode;

	@Schema(description = "附加数据（接口回调通知时原路返回数据）")
	private String attach;

	@Schema(description = "回调地址（局部），有填写该值的情况下会优先取该地址进行回调通知")
	private String callbackUrl;

	@NotBlank(message = "请输入签名")
	@Schema(description = "签名（MD5），请求参数&密钥以MD5算法加密")
	private String sign;
}
